package com.warframe.entity.message;

public class Message {

    private Integer subType;//子类型，11/来自好友 1/来自在线状态 2/来自群 3/来自讨论组
    private Integer msgId;//消息ID
    private Long groupId;
    private Long fromQQ;//来源QQ
    private String msg;//消息内容
    private Integer font;//字体
    private String sign;

    public Message() {
    }

    public Message(Integer subType, Integer msgId, Long fromQQ, String msg) {
        this.subType = subType;
        this.msgId = msgId;
        this.fromQQ = fromQQ;
        this.msg = msg;
    }

    public Message(Integer subType, Integer msgId, Long groupId, Long fromQQ, String msg) {
        this.subType = subType;
        this.msgId = msgId;
        this.groupId = groupId;
        this.fromQQ = fromQQ;
        this.msg = msg;
    }

    public Message(Long fromQQ, String msg, String sign) {
        this.fromQQ = fromQQ;
        this.msg = msg;
        this.sign = sign;
    }

    @Override
    public String toString() {
        return "Message{" +
                "subType=" + subType +
                ", msgId=" + msgId +
                ", fromQQ=" + fromQQ +
                ", msg='" + msg + '\'' +
                ", font=" + font +
                ", sign='" + sign + '\'' +
                '}';
    }

    public Integer getSubType() {
        return subType;
    }

    public void setSubType(Integer subType) {
        this.subType = subType;
    }

    public Integer getMsgId() {
        return msgId;
    }

    public void setMsgId(Integer msgId) {
        this.msgId = msgId;
    }

    public Long getFromQQ() {
        return fromQQ;
    }

    public void setFromQQ(Long fromQQ) {
        this.fromQQ = fromQQ;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getFont() {
        return font;
    }

    public void setFont(Integer font) {
        this.font = font;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }
}
